Struct viceroy_lib::logging::LogEndpoint [−][src]
pub struct LogEndpoint(_);
Expand description
A logging endpoint, which for Viceroy is just a name.
Implementations
pub fn new(name: &[u8]) -> LogEndpointⓘNotable traits for LogEndpointimpl Write for LogEndpoint
pub fn new(name: &[u8]) -> LogEndpointⓘNotable traits for LogEndpointimpl Write for LogEndpoint
impl Write for LogEndpoint
Allocate a new LogEndpoint
with the given name.
Trait Implementations
Write a buffer into this writer, returning how many bytes were written. Read more
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
can_vector
)Determines if this Write
r has an efficient write_vectored
implementation. Read more
Attempts to write an entire buffer into this writer. Read more
write_all_vectored
)Attempts to write multiple buffers into this writer. Read more
Writes a formatted string into this writer, returning any error encountered. Read more
Auto Trait Implementations
impl RefUnwindSafe for LogEndpoint
impl Send for LogEndpoint
impl Sync for LogEndpoint
impl Unpin for LogEndpoint
impl UnwindSafe for LogEndpoint
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn get_fd_flags(&self) -> Result<FdFlags, Error> where
T: AsFilelike,
pub fn get_fd_flags(&self) -> Result<FdFlags, Error> where
T: AsFilelike,
Query the “status” flags for the self
file descriptor.
pub fn new_set_fd_flags(
&self,
fd_flags: FdFlags
) -> Result<SetFdFlags<T>, Error> where
T: AsFilelike,
pub fn new_set_fd_flags(
&self,
fd_flags: FdFlags
) -> Result<SetFdFlags<T>, Error> where
T: AsFilelike,
Create a new SetFdFlags
value for use with set_fd_flags
. Read more
pub fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error> where
T: AsFilelike,
pub fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error> where
T: AsFilelike,
Set the “status” flags for the self
file descriptor. Read more
Writes the type N
into Self
, with the parsing context ctx
.
NB: this will panic if the type you’re writing has a size greater than 256. Plans are to have this allocate in larger cases. Read more
Writes the type N
into Self
, with the parsing context ctx
.
NB: this will panic if the type you’re writing has a size greater than 256. Plans are to have this allocate in larger cases. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more