Function xous::syscall::try_send_message
source · pub fn try_send_message(
connection: CID,
message: Message
) -> Result<Result, Error>
Expand description
Send a message to a server. Depending on the message type (move or borrow), it
will either block (borrow) or return immediately (move).
If the message type is borrow
, then the memory addresses pointed to will be
unavailable to this process until this function returns.
§Errors
- ServerNotFound: The server does not exist so the connection is now invalid
- BadAddress: The client tried to pass a Memory message using an address it doesn’t own
- ServerQueueFull: The queue in the server is full, and this call would block
- Timeout: The timeout limit has been reached