#[non_exhaustive]pub struct SessionConfig {
pub server_id: String,
pub stop_after_hello: bool,
pub repository: Option<String>,
}Expand description
A session’s settings.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.server_id: StringHelloResponse.server_id: mkit serve/<version> for the ssh
forced command, mkit serve-enc/<version> for an enc listener.
stop_after_hello: boolEnd cleanly right after a successful handshake, before any verb.
mkit serve’s MKIT_SERVE_TEST_DIE_AFTER_HELLO harness sets it; a
production caller never does.
repository: Option<String>The repository every verb’s request carries as x-repository:
only an enc listener sets it, under Multi addressing, from its
configured repository. mkit serve resolves its repository from the
path, and a client can never name one over the wire.
Implementations§
Trait Implementations§
Source§impl Clone for SessionConfig
impl Clone for SessionConfig
Source§impl Debug for SessionConfig
impl Debug for SessionConfig
impl Eq for SessionConfig
Source§impl PartialEq for SessionConfig
impl PartialEq for SessionConfig
impl StructuralPartialEq for SessionConfig
Auto Trait Implementations§
impl Freeze for SessionConfig
impl RefUnwindSafe for SessionConfig
impl Send for SessionConfig
impl Sync for SessionConfig
impl Unpin for SessionConfig
impl UnsafeUnpin for SessionConfig
impl UnwindSafe for SessionConfig
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