TextProfile

Trait TextProfile 

Source
pub trait TextProfile {
    // Required methods
    fn recognizes_content_type(&self, message_type: MessageType) -> bool;
    fn extension_treatment(&self, number: u16) -> Option<DuplicateTreatment>;
}
Expand description

Profile contract selecting which message types and extension options a deployment recognizes.

Profiles are static implementations; umsh-chat-room implements the room profiles on top of this contract.

Required Methods§

Source

fn recognizes_content_type(&self, message_type: MessageType) -> bool

Whether a non-control message type is recognized as displayable content in this profile.

Source

fn extension_treatment(&self, number: u16) -> Option<DuplicateTreatment>

Duplicate treatment for a recognized extension option, or None when the option is unrecognized (and therefore ignorable).

Implementors§