Struct bitcoin_netpermissions::NetPermissions
source · pub struct NetPermissions {
pub flags: NetPermissionFlags,
}Expand description
Fields§
§flags: NetPermissionFlagsImplementations§
source§impl NetPermissions
impl NetPermissions
pub fn has_flag(flags: &NetPermissionFlags, f: NetPermissionFlags) -> bool
pub fn add_flag(flags: &mut NetPermissionFlags, f: NetPermissionFlags)
sourcepub fn clear_flag(flags: &mut NetPermissionFlags, f: NetPermissionFlags)
pub fn clear_flag(flags: &mut NetPermissionFlags, f: NetPermissionFlags)
| ClearFlag is only called with f ==
| NetPermissionFlags::Implicit.
|
| If that should change in the future, be
| aware that ClearFlag should not be called
| with a subflag of a multiflag,
| e.g. NetPermissionFlags::Relay or
| NetPermissionFlags::Download, as that
| would leave flags in an invalid state
| corresponding to none of the existing
| flags.
pub fn to_strings(&mut self, flags: NetPermissionFlags) -> Vec<String>
Trait Implementations§
source§impl Clone for NetPermissions
impl Clone for NetPermissions
source§fn clone(&self) -> NetPermissions
fn clone(&self) -> NetPermissions
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for NetPermissions
impl Send for NetPermissions
impl Sync for NetPermissions
impl Unpin for NetPermissions
impl UnwindSafe for NetPermissions
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more