pub enum LogPuppetRequest {
Println {
message: String,
responder: LogPuppetPrintlnResponder,
},
Eprintln {
message: String,
responder: LogPuppetEprintlnResponder,
},
Log {
payload: LogPuppetLogRequest,
responder: LogPuppetLogResponder,
},
WaitForInterestChange {
responder: LogPuppetWaitForInterestChangeResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: LogPuppetControlHandle,
method_type: MethodType,
},
}
Expand description
LoggerPuppet emits log messages when requested.
Variants§
Println
Prints a message to stdout and appends a newline.
Eprintln
Prints a message stderr and appends a newline.
Log
Emits a tracing event at the specified severity level.
WaitForInterestChange
Blocks the caller until the next time an interest change event is observed. Messages are lost if they are emitted using LogPuppet.Log before the puppet has observed the the interest change.
Fields
§
responder: LogPuppetWaitForInterestChangeResponder
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: LogPuppetControlHandle
§
method_type: MethodType
Implementations§
Source§impl LogPuppetRequest
impl LogPuppetRequest
pub fn into_println(self) -> Option<(String, LogPuppetPrintlnResponder)>
pub fn into_eprintln(self) -> Option<(String, LogPuppetEprintlnResponder)>
pub fn into_log(self) -> Option<(LogPuppetLogRequest, LogPuppetLogResponder)>
pub fn into_wait_for_interest_change( self, ) -> Option<LogPuppetWaitForInterestChangeResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogPuppetRequest
impl !RefUnwindSafe for LogPuppetRequest
impl Send for LogPuppetRequest
impl Sync for LogPuppetRequest
impl Unpin for LogPuppetRequest
impl !UnwindSafe for LogPuppetRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more