pub struct KillSwitch {
pub frozen: u8,
}Fields§
§frozen: u8Bool indices:
- [0] - mint
- [1] - redeem
- [2] - rebalance
- [3] - capture (print and distribute stable)
Trait Implementations§
Source§impl BorshDeserialize for KillSwitch
impl BorshDeserialize for KillSwitch
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for KillSwitch
impl BorshSerialize for KillSwitch
Source§impl Clone for KillSwitch
impl Clone for KillSwitch
Source§fn clone(&self) -> KillSwitch
fn clone(&self) -> KillSwitch
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 moreSource§impl Debug for KillSwitch
impl Debug for KillSwitch
impl Eq for KillSwitch
Source§impl PartialEq for KillSwitch
impl PartialEq for KillSwitch
Source§fn eq(&self, other: &KillSwitch) -> bool
fn eq(&self, other: &KillSwitch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for KillSwitch
Auto Trait Implementations§
impl Freeze for KillSwitch
impl RefUnwindSafe for KillSwitch
impl Send for KillSwitch
impl Sync for KillSwitch
impl Unpin for KillSwitch
impl UnsafeUnpin for KillSwitch
impl UnwindSafe for KillSwitch
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