pub struct SetLogLevel {
pub directives: String,
pub expires_in_secs: Option<u64>,
pub revert_to: Option<String>,
}Expand description
Log-level filter settings. Used in two directions:
- As a cloud-to-client push (via the
crate::ClientHostcallback) to apply a new override mid-session. - As the response payload to
GetLogLevelso the client can pull the persisted setting on connect.
Fields§
§directives: StringEnvFilter-compatible directive string (for example
"info,iroh=trace,iroh_blobs=debug").
expires_in_secs: Option<u64>If Some, the client reverts after this many seconds. If None, the
override is permanent until the next call.
revert_to: Option<String>Directives to revert to when the TTL fires. When None, the client
reverts to its install-time default. The cloud sends the project-wide
default here so per-endpoint overrides decay back to project policy
rather than to the client’s own startup setting.
Trait Implementations§
Source§impl Channels<ClientHostProtocol> for SetLogLevel
impl Channels<ClientHostProtocol> for SetLogLevel
Source§impl Clone for SetLogLevel
impl Clone for SetLogLevel
Source§fn clone(&self) -> SetLogLevel
fn clone(&self) -> SetLogLevel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SetLogLevel
impl Debug for SetLogLevel
Source§impl<'de> Deserialize<'de> for SetLogLevel
impl<'de> Deserialize<'de> for SetLogLevel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SetLogLevel> for ClientHostProtocol
impl From<SetLogLevel> for ClientHostProtocol
Source§fn from(value: SetLogLevel) -> Self
fn from(value: SetLogLevel) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SetLogLevel
impl RefUnwindSafe for SetLogLevel
impl Send for SetLogLevel
impl Sync for SetLogLevel
impl Unpin for SetLogLevel
impl UnwindSafe for SetLogLevel
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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