Enum synapse_rpc::message::SMessage [] [src]

pub enum SMessage<'a> {
    ResourcesExtant {
        serial: u64,
        ids: Vec<Cow<'a, str>>,
    },
    ResourcesRemoved {
        serial: u64,
        ids: Vec<String>,
    },
    UpdateResources {
        serial: Option<u64>,
        resources: Vec<SResourceUpdate<'a>>,
    },
    RpcVersion(Version),
    TransferOffer {
        serial: u64,
        expires: DateTime<Utc>,
        token: String,
        size: u64,
    },
    ResourcePending {
        serial: u64,
        id: String,
    },
    UnknownResource(Error),
    InvalidResource(Error),
    InvalidSchema(Error),
    InvalidRequest(Error),
    PermissionDenied(Error),
    TransferFailed(Error),
}

Server -> client message

Variants

Fields of ResourcesExtant

Fields of ResourcesRemoved

Fields of UpdateResources

Fields of TransferOffer

Fields of ResourcePending

Trait Implementations

impl<'a> Clone for SMessage<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for SMessage<'a>
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> Send for SMessage<'a>

impl<'a> Sync for SMessage<'a>