pub struct LinuxGatewayFileLog { /* private fields */ }Implementations§
Source§impl LinuxGatewayFileLog
impl LinuxGatewayFileLog
Sourcepub fn try_init<P>(enabled: bool, log_dir: P) -> Option<Arc<Self>>
pub fn try_init<P>(enabled: bool, log_dir: P) -> Option<Arc<Self>>
Builds the sink only when Linux file logging is enabled and usable.
Sourcepub fn try_enqueue_request<T: Serialize>(&self, entry: &T) -> Result<(), ()>
pub fn try_enqueue_request<T: Serialize>(&self, entry: &T) -> Result<(), ()>
Enqueues one gateway request row.
Trait Implementations§
Source§impl Clone for LinuxGatewayFileLog
impl Clone for LinuxGatewayFileLog
Source§fn clone(&self) -> LinuxGatewayFileLog
fn clone(&self) -> LinuxGatewayFileLog
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LinuxGatewayFileLog
impl RefUnwindSafe for LinuxGatewayFileLog
impl Send for LinuxGatewayFileLog
impl Sync for LinuxGatewayFileLog
impl Unpin for LinuxGatewayFileLog
impl UnsafeUnpin for LinuxGatewayFileLog
impl UnwindSafe for LinuxGatewayFileLog
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more