Enum sn_messaging::client::RegisterRead[][src]

pub enum RegisterRead {
    Get(Address),
    Read(Address),
    GetPolicy(Address),
    GetUserPermissions {
        address: Address,
        user: User,
    },
    GetOwner(Address),
}

Register reading queries

Variants

Get(Address)

Get Register from the network.

Read(Address)

Read last entry, or entries if there are branches, from the Register.

GetPolicy(Address)

List current policy

GetUserPermissions

Get current permissions for a specified user(s).

Show fields

Fields of GetUserPermissions

address: Address

Register address.

user: User

User to get permissions for.

GetOwner(Address)

Get current owner.

Implementations

impl RegisterRead[src]

pub fn error(&self, error: Error) -> QueryResponse[src]

Creates a Response containing an error, with the Response variant corresponding to the Request variant.

pub fn dst_address(&self) -> XorName[src]

Returns the address of the destination for request.

Trait Implementations

impl Clone for RegisterRead[src]

impl Debug for RegisterRead[src]

impl<'de> Deserialize<'de> for RegisterRead[src]

impl Eq for RegisterRead[src]

impl Hash for RegisterRead[src]

impl PartialEq<RegisterRead> for RegisterRead[src]

impl PartialOrd<RegisterRead> for RegisterRead[src]

impl Serialize for RegisterRead[src]

impl StructuralEq for RegisterRead[src]

impl StructuralPartialEq for RegisterRead[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,