pub enum LogSettingsRequest {
RegisterInterest {
selectors: Vec<LogInterestSelector>,
control_handle: LogSettingsControlHandle,
},
SetInterest {
selectors: Vec<LogInterestSelector>,
responder: LogSettingsSetInterestResponder,
},
SetComponentInterest {
payload: LogSettingsSetComponentInterestRequest,
responder: LogSettingsSetComponentInterestResponder,
},
}
Expand description
This protocol allows clients to modify the logging behavior of components in the system.
Variants§
RegisterInterest
SetInterest
Requests a change in interest for the matched components.
Each component holds a set of requested interests.
When a new request on LogSettings#SetInterest is received,
the sets for matched components receive the new minimum interest.
If the interest is less than the previous minimum interest, then a
SetInterest
request is sent with the new minimum interest.
If a connection to LogSettings
sends another SetInterest
request, its previous interest request will be undone.
When the connection to LogSettings
is finished, the interests are
undone. Each matched component minimum interest is updated with the
new minimum interest in the set.
SetComponentInterest
Requests a change in interest for the matched components.
Each component holds a set of requested interests.
When a new request on LogSettings#SetComponentInterest is received,
the sets for matched components receive the new minimum interest.
If the interest is less than the previous minimum interest, then a
SetComponentInterest
request is sent with the new minimum interest.
If a connection to LogSettings
sends another SetComponentInterest
request, its previous interest request will be undone.
When the connection to LogSettings
is finished, the interests are
undone, unless persist is set to true. Each matched component minimum
interest is updated with the new minimum interest in the set.
Fields
responder: LogSettingsSetComponentInterestResponder
Implementations§
Source§impl LogSettingsRequest
impl LogSettingsRequest
pub fn into_register_interest( self, ) -> Option<(Vec<LogInterestSelector>, LogSettingsControlHandle)>
pub fn into_set_interest( self, ) -> Option<(Vec<LogInterestSelector>, LogSettingsSetInterestResponder)>
pub fn into_set_component_interest( self, ) -> Option<(LogSettingsSetComponentInterestRequest, LogSettingsSetComponentInterestResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL