pub struct GateSettings {
pub prefer: Policy,
pub node: Option<NodeAddr>,
pub cursors: u32,
pub total_cursors: u32,
}
Fields§
§prefer: Policy
An advisory policy for which nodes to give preferential treatment to.
node: Option<NodeAddr>
Open the gate for only this node
cursors: u32
How many cursors a node is permitted to have open through this gate.
total_cursors: u32
How many total cursors may be opened within this gate
Auto Trait Implementations§
impl Freeze for GateSettings
impl RefUnwindSafe for GateSettings
impl Send for GateSettings
impl Sync for GateSettings
impl Unpin for GateSettings
impl UnwindSafe for GateSettings
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