var searchIndex = {}; searchIndex["rust_cast"] = {"doc":"","items":[[3,"CastDevice","rust_cast","Structure that manages connection to a cast device.",null,null],[12,"connection","","Channel that manages connection responses/requests.",0,null],[12,"heartbeat","","Channel that allows connection to stay alive (via ping-pong requests/responses).",0,null],[12,"media","","Channel that manages various media stuff.",0,null],[12,"receiver","","Channel that manages receiving platform (eg. Chromecast).",0,null],[4,"ChannelMessage","","Supported channel message types.",null,null],[13,"Connection","","Message to be processed by `ConnectionChannel`.",1,null],[13,"Heartbeat","","Message to be processed by `HeartbeatChannel`.",1,null],[13,"Media","","Message to be processed by `MediaChannel`.",1,null],[13,"Receiver","","Message to be processed by `ReceiverChannel`.",1,null],[13,"Raw","","Raw message is returned when built-in channels can't process it (eg. because of unknown\n`namespace`).",1,null],[0,"errors","","",null,null],[4,"Error","rust_cast::errors","Consolidates possible error types that can occur in the lib.",null,null],[13,"Internal","","This variant is used when error occurs in the lib logic.",2,null],[13,"Io","","This variant includes everything related to the network connection.",2,null],[13,"Protobuf","","This variant includes all possible errors that come from Protobuf layer.",2,null],[13,"Serialization","","This variant includes everything related to (de)serialization of incoming and outgoing\nmessages.",2,null],[13,"Ssl","","This variant includes any error that comes from OpenSSL.",2,null],[11,"fmt","","",2,null],[11,"fmt","","",2,null],[11,"description","","",2,null],[11,"cause","","",2,null],[11,"from","","",2,{"inputs":[{"name":"ioerror"}],"output":{"name":"error"}}],[11,"from","","",2,{"inputs":[{"name":"protobuferror"}],"output":{"name":"error"}}],[11,"from","","",2,{"inputs":[{"name":"serializationerror"}],"output":{"name":"error"}}],[11,"from","","",2,{"inputs":[{"name":"sslerror"}],"output":{"name":"error"}}],[0,"message_manager","rust_cast","",null,null],[3,"CastMessage","rust_cast::message_manager","Base structure that represents messages that are exchanged between Receiver and Sender.",null,null],[12,"namespace","","A namespace is a labeled protocol. That is, messages that are exchanged throughout the\nCast ecosystem utilize namespaces to identify the protocol of the message being sent.",3,null],[12,"source","","Unique identifier of the `sender` application.",3,null],[12,"destination","","Unique identifier of the `receiver` application.",3,null],[12,"payload","","Payload data attached to the message (either string or binary).",3,null],[3,"MessageManager","","Static structure that is responsible for (de)serializing and sending/receiving Cast protocol\nmessages.",null,null],[4,"CastMessagePayload","","Type of the payload that `CastMessage` can have.",null,null],[13,"String","","Payload represented by UTF-8 string (usually it's just a JSON string).",4,null],[13,"Binary","","Payload represented by binary data.",4,null],[11,"fmt","","",4,null],[11,"fmt","","",3,null],[11,"send","","",5,{"inputs":[{"name":"w"},{"name":"castmessage"}],"output":{"name":"result"}}],[11,"receive","","",5,{"inputs":[{"name":"t"}],"output":{"name":"result"}}],[0,"channels","rust_cast","",null,null],[0,"heartbeat","rust_cast::channels","",null,null],[3,"HeartbeatChannel","rust_cast::channels::heartbeat","",null,null],[4,"HeartbeatResponse","","",null,null],[13,"Ping","","",6,null],[13,"Pong","","",6,null],[13,"NotImplemented","","",6,null],[11,"fmt","","",6,null],[11,"new","","",7,{"inputs":[{"name":"s"},{"name":"s"},{"name":"rc"}],"output":{"name":"heartbeatchannel"}}],[11,"ping","","",7,null],[11,"pong","","",7,null],[11,"can_handle","","",7,null],[11,"parse","","",7,null],[0,"connection","rust_cast::channels","",null,null],[3,"ConnectionChannel","rust_cast::channels::connection","",null,null],[4,"ConnectionResponse","","",null,null],[13,"Connect","","",8,null],[13,"Close","","",8,null],[13,"NotImplemented","","",8,null],[11,"fmt","","",8,null],[11,"new","","",9,{"inputs":[{"name":"s"},{"name":"rc"}],"output":{"name":"connectionchannel"}}],[11,"connect","","",9,null],[11,"disconnect","","",9,null],[11,"can_handle","","",9,null],[11,"parse","","",9,null],[0,"receiver","rust_cast::channels","",null,null],[3,"Volume","rust_cast::channels::receiver","Structure that describes possible cast device volume options.",null,null],[12,"level","","Volume level.",10,null],[12,"muted","","Mute/unmute state.",10,null],[3,"ReceiverChannel","","",null,null],[4,"ReceiverResponse","","",null,null],[13,"Status","","",11,null],[13,"LaunchError","","",11,null],[13,"NotImplemented","","",11,null],[4,"CastDeviceApp","","",null,null],[13,"DefaultMediaReceiver","","",12,null],[13,"Backdrop","","",12,null],[13,"YouTube","","",12,null],[13,"Custom","","",12,null],[11,"fmt","","",10,null],[11,"fmt","","",11,null],[11,"eq","","",12,null],[11,"ne","","",12,null],[11,"fmt","","",12,null],[11,"from_str","","",12,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"to_string","","",12,null],[11,"new","","",13,{"inputs":[{"name":"s"},{"name":"s"},{"name":"rc"}],"output":{"name":"receiverchannel"}}],[11,"launch_app","","",13,null],[11,"stop_app","","",13,null],[11,"get_status","","",13,null],[11,"set_volume","","Sets volume for the active cast device.",13,null],[11,"can_handle","","",13,null],[11,"parse","","",13,null],[0,"media","rust_cast::channels","",null,null],[3,"MediaChannel","rust_cast::channels::media","",null,null],[4,"StreamType","","Describes the way cast device should stream content.",null,null],[13,"None","","This variant allows cast device to automatically choose whatever way it's most comfortable\nwith.",14,null],[13,"Buffered","","Cast device should buffer some portion of the content and only then start streaming.",14,null],[13,"Live","","Cast device should display content as soon as it gets any portion of it.",14,null],[4,"MediaResponse","","Represents all currently supported incoming messages that media channel can handle.",null,null],[13,"MediaStatus","","Status of the currently active media.",15,null],[13,"LoadCancelled","","Information about cancelled media.",15,null],[13,"NotImplemented","","Used every time when channel can't parse the message. Associated data contains `type` string\nfield and raw JSON data returned from cast device.",15,null],[11,"fmt","","",15,null],[11,"new","","",16,{"inputs":[{"name":"s"},{"name":"rc"}],"output":{"name":"mediachannel"}}],[11,"load","","",16,null],[11,"can_handle","","",16,null],[11,"parse","","",16,null],[11,"connect","rust_cast","Connects to the cast device using host name and port.",0,{"inputs":[{"name":"s"},{"name":"u16"}],"output":{"name":"result"}}],[11,"receive","","Waits for any message returned by cast device (eg. Chromecast) and returns its parsed\nversion.",0,null]],"paths":[[3,"CastDevice"],[4,"ChannelMessage"],[4,"Error"],[3,"CastMessage"],[4,"CastMessagePayload"],[3,"MessageManager"],[4,"HeartbeatResponse"],[3,"HeartbeatChannel"],[4,"ConnectionResponse"],[3,"ConnectionChannel"],[3,"Volume"],[4,"ReceiverResponse"],[4,"CastDeviceApp"],[3,"ReceiverChannel"],[4,"StreamType"],[4,"MediaResponse"],[3,"MediaChannel"]]}; initSearch(searchIndex);