pub struct WakePolicy {
pub terminal_typing: BTreeSet<String>,
pub routines: BTreeMap<String, RoutineTarget>,
pub spawn_profiles: BTreeMap<String, SpawnProfile>,
pub node_mail_to: Option<String>,
pub deliver_body: bool,
}Expand description
The operator’s letter policy for this node. The default delivers to live sessions only.
Fields§
§terminal_typing: BTreeSet<String>Nicks whose raw-terminal session may get a letter typed into its PTY (terminal grant).
routines: BTreeMap<String, RoutineTarget>Nicks delivered through a routine webhook.
spawn_profiles: BTreeMap<String, SpawnProfile>Nicks that may be launched from a fixed profile when no session is live.
node_mail_to: Option<String>Where this node’s own mailbox letters go (a nick in routines). Unset: the node-mail
host action is off.
deliver_body: boolPut the letter text into the session turn. Off by default: a live session gets only a short wake line naming the sender and event, and reads the letter itself through m4a (task data travels only via m4a; the wake is a signal).
Implementations§
Source§impl WakePolicy
impl WakePolicy
Sourcepub fn spawn_profile(&self, nick: &str) -> Option<&SpawnProfile>
pub fn spawn_profile(&self, nick: &str) -> Option<&SpawnProfile>
Whether nick may be launched from a spawn profile when offline.
Sourcepub fn terminal_granted(&self, nick: &str) -> bool
pub fn terminal_granted(&self, nick: &str) -> bool
The terminal capability for nick: may a letter be typed into its PTY?
Trait Implementations§
Source§impl Clone for WakePolicy
impl Clone for WakePolicy
Source§impl Debug for WakePolicy
impl Debug for WakePolicy
Source§impl Default for WakePolicy
impl Default for WakePolicy
Source§impl<'de> Deserialize<'de> for WakePolicy
impl<'de> Deserialize<'de> for WakePolicy
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
impl Eq for WakePolicy
Source§impl PartialEq for WakePolicy
impl PartialEq for WakePolicy
impl StructuralPartialEq for WakePolicy
Auto Trait Implementations§
impl Freeze for WakePolicy
impl RefUnwindSafe for WakePolicy
impl Send for WakePolicy
impl Sync for WakePolicy
impl Unpin for WakePolicy
impl UnsafeUnpin for WakePolicy
impl UnwindSafe for WakePolicy
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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